home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2003 May / cmycha200305.iso / MutantStorm / setup_mutantstorm_demo.exe / {app} / script / crystal_small.lua < prev    next >
Text File  |  2003-03-11  |  2KB  |  62 lines

  1.  
  2. -- leave me
  3.     local actor = ACTOR_preload()
  4. -- leave me
  5.  
  6.  
  7.     -- default for this beastie
  8.     actor[cp_actor_name]        = "crystal_small"
  9.     actor[cp_model_dir]            = "beasties"
  10.     actor[cp_model_name]        = "crystal-1_3"
  11.  
  12.     actor[cp_move_type]            = cmt_fixed_dirn + cmt_random
  13.  
  14.     actor[cp_actor_type]            = cat_crystal
  15.     actor[cp_i_collide_with_beasties]    = cat_fence + cat_fizz + cat_player + cat_block + cat_blocker + cat_webblob + cat_mergeblob
  16. --    actor[cp_these_collide_with_me]        = cat_player + cat_bullet + cat_crystal
  17.  
  18.     actor[cp_score]                = 100
  19.     actor[cp_hit_power]            = 5.0
  20.  
  21.     -- movement
  22.     actor[cp_move_speed_min]        = 0.15
  23.     actor[cp_move_speed_max]        = 0.2
  24.     actor[cp_move_inertia_decn]        = 1.0
  25.  
  26.     actor[cp_spin_speed_min]        = 0.5
  27.     actor[cp_spin_speed_max]        = 2.5
  28.     -- spin1_x
  29.     actor[cp_turn_speed_moving]        = 0.25
  30.  
  31.     actor[cp_weight]                = 6.0
  32.  
  33.     actor[cp_launch_scale_min]        = 100.0
  34.     actor[cp_launch_scale_max]        = 100.0
  35.  
  36.     actor[cp_launch_hue_shift] = color - 30
  37.  
  38.     actor[cp_hit_delay]            = 2.55
  39.     actor[cp_fade_in_translucent]    = 1
  40.  
  41.     actor[cp_max_explosion_multiply]    = 0.1
  42.  
  43.     actor[cp_difficulty_adjust_speed] = 44.0
  44.  
  45. -- leave me
  46.     c_preload_model( actor )
  47. -- leave me
  48.  
  49.     c_set_random_anim( "throb", 200.0, 400.0, 0.0, 0.5 )
  50.     c_add_sound_to_anim( "throb", "moon", 1 )
  51.  
  52.     local seq = { 0.0 }
  53.     c_set_use_explosion_for( "bye_bye", "crystal1_sma", exp_no_align, 0.0, 0.13, 1000.0, 1300.0, seq )
  54.     c_add_particle_to_explosion( "crystal1_sma", "explode", "", "crystal1exp-sma" )
  55.     c_add_sound_to_explosion( "crystal1_sma", "explode", "crystal_exp3" )
  56.  
  57.     c_add_sound_to_event( "hit_fence", "crystal_exp3" )
  58.  
  59.     -- new state
  60.     c_set_trigger_mutate( "crystal_tiny", "my_health", 0.0, 0.0, 2, 3, 95.0, 105.0 )
  61.     -- new state
  62.